package com.yingxue.demo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Package: com.yingxue.demo.controller
 * @Author: Mr.Waves
 * @Date: 2020-03-29 17:24
 * @Description:
 **/
@Api(tags = "视图接口类")
@Controller
@RequestMapping("index")
public class IndexController {

    @ApiOperation(value = "404错误页面")
    @GetMapping("404")
    public String error404() {
        return "error/404";
    }

    @ApiOperation(value = "登录页面")
    @GetMapping("login")
    public String login() {
        return "login";
    }

    @ApiOperation(value = "跳转主页")
    @GetMapping("home")
    public String home() {
        return "home";
    }

    @ApiOperation(value = "获取项目介绍")
    @GetMapping("main")
    public String main() {
        return "main";
    }

    @ApiOperation(value = "跳转菜单权限管理界面")
    @GetMapping("permissionMenu")
    public String menu() {
        return "menu/permission-menu";
    }
}
